www.gusucode.com > 中国货源网导航程序源码 1 > 中国货源网导航程序源码 1.0/8月11日备份/ly/add_ui.asp
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <meta name="keywords" content="中国货源网,100-86"> <title><%=webname%></title> <style type="text/css"> td{font-size:12px;} </style> <script language="javascript"> function checkspace(astr) { bstr="" cd=astr.length for(i=0;i<cd;i++) { if(astr.charAt(" ")>=0) {bstr=bstr+" "} } if(bstr==astr) { return true; } else{return false;} } function checkemail(qemail) { if(qemail.charAt(0)=="." ||qemail.charAt(0)=="@"||qemail.indexOf('@', 0) == -1 || qemail.indexOf('.', 0) == -1 || qemail.lastIndexOf("@")==qemail.value.length-1 || qemail.lastIndexOf(".")==qemail.value.length-1) return true; } function checkform() { if(checkspace(form1.name.value)){ alert ("请输入昵称!"); form1.name.value=""; form1.name.focus(); return false; } if(checkspace(form1.content.value)) { alert ("请输入留言内容!"); form1.content.value=""; form1.content.focus(); return false; } if(!checkspace(form1.email.value)){ if(checkemail(form1.email.value)){ alert("Email地址格式不正确!"); form1.email.value=""; form1.email.focus(); return false; } return true; } form1.subm.disabled=true; } </script> </head> <body topmargin="10"> <script language="javascript" src="../top.js"></script> <table width='729' border='0' align='center' cellpadding='0' cellspacing='0'> <tr><td height='20' colspan='2' style='background-position: 0% 0%; font-size:12px;color:#000000;BORDER-RIGHT:1px solid #aaaaaa;padding-top:3px; background-image:url('images/bg1.gif'); background-repeat:repeat; background-attachment:scroll'> <font color="#FFFFFF">当前位置:首页 >> 发表留言</font></td></tr> </table> <table width='729' border='0' align='center' cellpadding='0' cellspacing='0'> <tr><td height='10' colspan='2'></td></tr> </table> <TABLE width=728 border=0 align="center" cellPadding=0 cellSpacing=0> <TBODY> <TR> <TD> <img border="0" src="images/off-v.gif"> 请您留言 (注:*为必填项)</TD> <TD align=right width=400 height=28> <INPUT style="BORDER-RIGHT: 2px solid #000080; BORDER-TOP: 2px solid #FFFFFF; FONT-SIZE: 14px; BACKGROUND: #D3EDFF; WIDTH: 80px; BORDER-BOTTOM: 2px solid #000080; HEIGHT: 22px;cursor:hand" type="button" value="返回列表" name="btn2" onclick="javascrit:window.location='./';"> </TD> </TR></TBODY></TABLE> <div align="center"> <TABLE width=728 border=0 cellPadding=0 cellSpacing=0 style="BORDER: 2px solid #A5D318;"> <TBODY> <TR style="BACKGROUND-COLOR: #f2fdee"> <TD width=74 height=18> </TD> <TD width=593> </TD> <TD width=59> </TD> </TR> <TR style="BACKGROUND-COLOR: #f2fdee"> <TD height=244> </TD> <TD valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <form action="add.asp" method="post" name="form1" onsubmit="return checkform()"> <tr> <td align="right" height="28">昵 称:</td> <td colspan="2" valign="top"><input type="text" name="name" maxlength="8" class="input" size="40"> <font color=#ff0000>**</font> </td> </tr> <tr> <td align="right" height="28"><img border="0" src="images/email1.gif">:</td> <td colspan="2" valign="top"><input type="text" name="email" maxlength="30" class="input" size="40"> (尽量留下您的联系Email,以便我和您联系)</td> </tr> <tr> <td align="right" height="34">头 像:</td> <td colspan="2" valign="top"><img border="0" src="images/male.gif"> <input type="radio" name="sex" value="male.gif" checked> <img border="0" src="images/female.gif"> <input type="radio" name="sex" value="female.gif"> <img border="0" src="images/image26.gif"> <input type="radio" name="sex" value="image26.gif"> <img border="0" src="images/image96.gif"> <input type="radio" name="sex" value="image96.gif"></td> </tr> <tr> <td height="133" align="right" valign="top">内 容:</td> <td colspan="2" valign="top"> <textarea name="content" cols="50" rows="9" maxlength="150"></textarea> <font color=#ff0000>**</font></td> </tr> <tr> <td height="38" align="right"> </td> <td width="368" align="center" valign="middle"> <input type="submit" name="subm" value=" 提 交 " class="input" style="color: #FFFFFF; background-color: #666699"> <input type="reset" value=" 重 填 " class="input" style="color: #FFFFFF; background-color: #666699"></td> <td width="183"> </td> </tr> </form> </table></TD> <TD> </TD> </TR> <TR style="BACKGROUND-COLOR: #f2fdee"> <TD height=25> </TD> <TD> </TD> <TD> </TD> </TR> </TBODY> </TABLE> </div> <TABLE height=8 cellSpacing=0 cellPadding=0 width=728 border=0 align="center"> <TBODY> <TR> <TD></TD></TR></TBODY></TABLE> <TABLE width=728 border=0 align="center" cellPadding=0 cellSpacing=0> <!--DWLayoutTable--> <TBODY> <TR> <TD width=406 height="20"> 请不要发表违反国家法律法规的言论.谢谢合作!</TD> <TD width=322 align=right valign="top"> <INPUT style="BORDER-RIGHT: 2px solid #000080; BORDER-TOP: 2px solid #FFFFFF; FONT-SIZE: 14px; BACKGROUND: #D3EDFF; BORDER-LEFT: 2px solid #FFFFFF; WIDTH: 80px; BORDER-BOTTOM: 2px solid #000080; HEIGHT: 22px;cursor:hand" type="button" value="返回列表" name="btn4" onclick="javascrit:window.location='./';"> </TD> </TR> </TBODY> </TABLE> <!--留言程序结束--> <script language="javascript" src="/bottom.js"></script> </BODY></HTML>